import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import { setupStore } from '@/store/index'
import './assets/css/index.css'

import registerGlobal from '@/global/index'

const app = createApp(App)
// 注意：如果使用动态路由，需要在调用use(router)之前就将所有路由注册好，因为此时就已经匹配了路径
setupStore()
app.use(registerGlobal).use(store).use(router).mount('#app')
